package cn.edu.ujn.lab3.dao;

import java.util.List;

import cn.edu.ujn.lab3.dao.Customer;

public interface CustomerMapper {
    int deleteByPrimaryKey(Integer custId);

    int insert(Customer row);

    int insertSelective(Customer row);

    Customer selectByPrimaryKey(Integer custId);

    int updateByPrimaryKeySelective(Customer row);

    int updateByPrimaryKey(Customer row);
    // 客户列表
  	public List<Customer> selectCustomerList(Customer customer);
  	// 客户数
  	public Integer selectCustomerListCount(Customer customer);
	// 创建客户 
	public int createCustomer(Customer customer);  
	// 通过id查询客户
	public Customer getCustomerById(Integer id);
	// 更新客户信息
	public int updateCustomer(Customer customer);
	// 删除客户
	int deleteCustomer (Integer id);
	//根据名字查询客户
	Customer selectByName(String custName);
}